<!-- math question -->
      <div class="col-sm-6">
        <div class="classmath"> 
        <?php 
        // Giving the name class by static
        $classArray = $this->uri->segment(3,0);
         if($classArray ==1 ){
            $className = "6";
            $classKhmer = "៦";
         }else if($classArray == 2){
            $className = "9";
            $classKhmer = "៩";
         }
         else if($classArray == 3){
            $className = "12";
            $classKhmer = "១២";
         }else{
            $className ="";
            $classKhmer ="";
            echo "<span class='text-dnager'>Sorry, Class not found!</span>";
         }
        ?>
            <div class="pull-left"> <h2 class="khmer-family-font">ថ្នាក់ទី <?php  echo $classKhmer; ?></h2> </div>
            <div class="pull-right"> <h2>Class <?php echo $className; ?>th</h2> </div>
        </div>
         <div id="question">
         <div class="line line-dashed clear-both"></div>
            <?php
        if(isset($data) && $data->num_rows() > 0){
          $PageNumber = (uri(4) > 0) ? uri(4) : 0;
          $i = $PageNumber;
          foreach ($data->result_array() as $row) {
            $i++;
            ?>
        <img src="<?php echo site_url(UPLOAD_PATH)?>/math/question/<?php echo $row[field('question')]; ?>" class="img-responsive img-math m-t">
        <a href="<?php echo site_url('math/anwser'); ?>/<?php echo $row['Ids']; ?>" target="_blank"><h4 class="text-center m-t">ចំលើយ/Anwser</h4></a>
         <?php
          }
        }else if(!isset($data)){
        ?>
        <?php echo SEACH_MS_DEFAULT; ?>
        <?php echo SEACH_NOT_FOUND; ?>
        <?php } ?>
         </div>

         <div class="text-center"> 
         <?php echo $this->pagination->create_links(); ?>
         <!-- <form action="<?php echo site_url('math/disciplines'); ?>">
            Go to your page:<input type="text" class="input-s-sm-sm m-l m-r"> <button class="btn btn-primary">Go</button>
         </form> -->

         </div>

      </div>
	   <!-- END math question -->